/*
 * @Description:
 * @Date: 2024-07-09 14:40:33
 * @LastEditTime: 2024-07-17 10:07:30
 */
import request from '@/config/axios'
import qs from 'qs'

//获取公告列表
export const getNoticePage = async (data) => {
  return await request.post({ url: '/countryside/announcement/page', data })
}
//新增公告
export const createNotice = async (data) => {
  return await request.post({ url: '/countryside/announcement/create', data })
}
//更新公告 
export const updateNotice = async (data) => {
  return await request.put({ url: '/countryside/announcement/update', data })
}
//获取公告详情
export const getNoticeDetail = async (id) => {
  return await request.get({ url: '/countryside/announcement/get?id=' + id })
}


//删除公告 
export const deleteNotice = async (ids) => {
  return await request.delete({
    url: `/countryside/announcement/delete`,
    params: {
      ids: ids.join(',')
    }
  })
}

